
target_include_directories(${PROJECT_NAME} 
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/gpio
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/usart
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/eth
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/camera)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} bsp)
target_sources(${PROJECT_NAME} 
    PRIVATE ${bsp})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/gpio bsp_gpio)
target_sources(${PROJECT_NAME} 
    PRIVATE ${bsp_gpio})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/usart bsp_usart)
target_sources(${PROJECT_NAME} 
    PRIVATE ${bsp_usart})

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/eth bsp_eth)
target_sources(${PROJECT_NAME} 
    PRIVATE ${bsp_eth})


add_subdirectory(camera)